package com.mindata.blockchain.block;

/**
 * 区块body内一条指令
 * @author wuweifeng wrote on 2018/3/2.
 */
public class Instruction extends InstructionBase {
	private String json; // 新的内容
	private Long timeStamp; // 时间戳
	private String publicKey; // 操作人的公钥
	private String sign; // 签名
	private String hash; // 该操作的hash

	public String getJson() {
		return json;
	}

	public void setJson(String json) {
		this.json = json;
	}

	public String getPublicKey() {
		return publicKey;
	}

	public void setPublicKey(String publicKey) {
		this.publicKey = publicKey;
	}

	public Long getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(Long timeStamp) {
		this.timeStamp = timeStamp;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getHash() {
		return hash;
	}

	public void setHash(String hash) {
		this.hash = hash;
	}

	@Override
	public String toString() {
		return "Instruction{" + "json='" + json + '\'' + ", timeStamp=" + timeStamp + ", publicKey='" + publicKey + '\''
				+ ", sign='" + sign + '\'' + ", hash='" + hash + '\'' + '}';
	}
}
